/*
 * Copyright (C) 2009 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package palms.client.android.apis.view;

import android.app.Activity;
import android.content.Intent;

import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.EditText;

import palms.client.domain.User;

import com.example.android.google.apis.R;

public class SelectService extends Activity {
	
	private User user;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        
        super.onCreate(savedInstanceState);
		
        this.user = new User();
        
        this.setContentView(R.layout.selectservice);

		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		
        
    }
    
    public void onConfirm(View v){
    	
		EditText username = (EditText) this.findViewById(R.id.pname);
		EditText password = (EditText) this.findViewById(R.id.pname);
		this.user.setUsername(username.getText().toString());
		this.user.setPassword(password.getText().toString());
		
		Intent newIntent = new Intent(this, PalmsMapView.class);
		startActivityForResult(newIntent, 0);
    
    }
}